You can specify one or more file names (or pathnames), which are interpreted relative to the Terminal or Shell window's current working directory. For example, the following command would open all the files in the current working directory that end with a ".c" extension, plus all the files in a subdirectory called headers that end with a ".h" extension:
openfile *.c headers/*.hIf no file name is specified, openfile reads stdin and opens a /tmp file in Edit. This allows you to use commands such as the following:
diff file1 file2 | openfile grep foo *.[mch] | openfile